/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Interpreter;

import ast.ObjectDeclTree;
import java.util.ArrayList;

/**
 *
 * @author Stephen
 */
public class DSSObject {
    private ObjectDeclTree odt;
    
    public DSSObject(ObjectDeclTree t) {
        this.odt = t;
    }
    
    public ArrayList getFields() {
        int numKids = odt.kidCount();
        ArrayList fieldList = new ArrayList();
        for (int i = 1; i <= numKids; i++) {
            fieldList.add(odt.getKid(i));
        }
        return fieldList;
    }
}
